package com.leicx.guli.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leicx.guli.common.utils.PageUtils;
import com.leicx.guli.product.entity.SkuInfoEntity;
import com.leicx.guli.product.vo.sku.item.SkuItemVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author lcx
 * @email at_xiong@163.com
 * @date 2021-03-25 11:13:58
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByCondition(Map<String, Object> params);

    List<SkuInfoEntity> getSkusBySpuId(Long spuId);

    /**
     * 根据skuId获取sku详情
     *
     * @param skuId
     * @return com.leicx.guli.product.vo.sku.item.SkuItemVo
     * @author daxiong
     * @date 2022/7/25 下午1:55
     */
    SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;
}

